{include file="public/head" /}
<!--有理想的地方，地狱都是天堂-->
<!--Copyright @ df81.com 版权所有-->
<!--作者: 南国老符 邮箱：1062129401@qq.com-->
        <!-- 左侧菜单 开始 -->
        <div class="sidebar">
            <nav>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_content" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_data" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_global" /}
                </ul>
                <ul class="nav nav-pills nav-sidebar flex-column nav-flat nav-legacy d-block d-md-none" data-widget="treeview" role="menu" data-accordion="false">
                    {include file="public/left_system" /}
                </ul>
            </nav>
        </div>
        <!-- 左侧菜单 结束 -->
    </aside>
    <!-- 左侧 结束 -->
    <!-- 右侧 开始 -->
    <div class="content-wrapper">
        <!-- 内容导航 开始 -->
        <div class="content-header py-2 bg-white mb-3">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-sm-12">
                        <ol class="breadcrumb">
                            <li>{:lang('v_data_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_data_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>{:lang('v_comment')} {:lang('v_manage')}<i class="fas fa-angle-right mx-2"></i></li>
                            <li>
                                <span class="text-red">
                                    {notempty name="mod_title"}
                                        {$mod_title}
                                    {else /}
                                        {:lang('v_all')}
                                    {/notempty}
                                </span>
                            </li>
                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <!-- 内容导航 结束 -->
        <!-- 内容主体 开始 -->
        <section class="content">
            <div class="container-fluid">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-body">
                                <div class="w-100 mb-3">
                                    <form name="form_keyword" action="" method="post" class="row">
                                        <input type="hidden" name="lang" value="{$lang}">
                                        <input type="hidden" name="tabledir" value="{:input('tabledir')}">
                                        <input type="hidden" name="signid" value="{:input('signid')}">
                                        <div class="col-md-8 px-2">
                                            <a class="btn {if input('signid') eq 3 or empty(input('signid'))}btn-success{else /}btn-default{/if} mb-2 mr-2" href="{:url('/comment/index',['lang'=>$lang,'tabledir'=>input('tabledir'),'signid'=>3])}"><i class="fa fa-eye"></i> {:lang('v_audit_pending')}</a>
                                            <a class="btn {if input('signid') eq 1}btn-success{else /}btn-default{/if} mb-2 mr-2" href="{:url('/comment/index',['lang'=>$lang,'tabledir'=>input('tabledir'),'signid'=>1])}"><i class="fa fa-check-circle"></i> {:lang('v_audit')}</a>
                                            <a class="btn {if input('signid') eq 2}btn-success{else /}btn-default{/if} mb-2 mr-2" href="{:url('/comment/index',['lang'=>$lang,'tabledir'=>input('tabledir'),'signid'=>2])}"><i class="fa fa-times-circle"></i> {:lang('v_reject')}</a>
                                            <a class="btn {if input('signid') eq 9}btn-success{else /}btn-default{/if} mb-2 mr-2" href="{:url('/comment/index',['lang'=>$lang,'tabledir'=>input('tabledir'),'signid'=>9])}"><i class="fa fa-recycle"></i> {:lang('v_recycle')}</a>
                                     </div>
                                        <div class="col-md-4 px-2">
                                            <div class="input-group">
                                                <input name="keyword" placeholder="{:lang('v_quickfind')}" type="text" class="form-control">
                                                <span class="input-group-append">
                                                    <select name="tabledir" class="btn btn-default">
                                                        <option value="">{:lang('v_all')}</option>
                                                        {volist name="modulelist" id="modRs"}
                                                            <option value="{$modRs.tabledir}" {if input('tabledir') eq $modRs.tabledir}selected="selected"{/if}>{$modRs.title}</option>
                                                        {/volist}
                                                    </select>
                                                    <button type="submit" class="btn btn-success"><i class="fa fa-search mr-1"></i>{:lang('v_search')}</button>
                                                </span>
                                            </div>
                                        </div>
                                    </form>
                                </div>
                                <table class="table table-striped table-bordered table-hover">
                                    <form name="form_list" id="form_list" action="" method="post">
                                        <tr>
                                            <th class="text-center" width="100">ID</th>
                                            <th>{:lang('v_comment')} {:lang('v_content_a')}</th>
                                            <th class="text-center" width="350">{:lang('v_do')}</th>
                                        </tr>
                                        {volist name="list" id="rs"}
                                            {php}$id = $rs['id'];{/php}
                                            <input type="hidden" name="id[]" value="{$rs.id}" />
                                            <tr>
                                                <td class="text-center">
                                                    <label class="form-check form-check-inline">
                                                        <input type="checkbox" name="selectid[]" id="selectid" value="{$rs.id}" class="mr-1" />
                                                        <span class="d-invisible">{$rs.id}</span>
                                                    </label>
                                                </td>
                                                <td class="content">
                                                    {$rs.addtime|date='Y-m-d H:i:s'}<br>
                                                    {$rs.content|raw}
                                                    {lt name="rs.parentid" value="1"}
                                                        <a class="btn btn-success btn-sm mb-2" data-target="#modal" data-toggle="modal" href="{:url('/comment/reply',['lang'=>$lang,'id'=>$rs['id'],'signid'=>input('signid')])}"><i class="fa fa-reply"></i> {:lang('v_reply')} （{tag:count table="comment" where="parentid=$id and signid=1" /}）</a>
                                                    {/lt}
                                                </td>
                                                <td class="text-center">
                                                    {switch signid}
                                                        {case 3}
                                                            <!--待审核：通过/拒绝/编辑/软删除-->
                                                            <!--通过-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>1])}','');" class="btn btn-sm btn-purple mb-2 mr-2"><i class="fa fa-check-circle mr-1"></i>{:lang('v_check_pass')}</span>
                                                            <!--拒绝-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>2])}','');" class="btn btn-sm bg-purple mb-2 mr-2"><i class="fa fa-times-circle mr-1"></i>{:lang('v_check_cancel')}</span>
                                                            <!--编辑-->
                                                            <a class="btn btn-sm btn-success mb-2 mr-2" data-target="#modal" data-toggle="modal" href="{:url('/comment/edit',['lang'=>$lang,'id'=>$rs['id'],'signid'=>input('signid')])}"><i class="fa fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                            <!--软删除-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>9])}','');" class="btn btn-sm btn-danger mb-2"><i class="fa fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                        {/case}
                                                        {case 1}
                                                            <!--已通过：拒绝/编辑/软删除-->
                                                            <!--拒绝-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>2])}','');" class="btn btn-sm bg-purple mb-2 mr-2"><i class="fa fa-times-circle"></i> {:lang('v_check_cancel')}</span>
                                                            <!--待审核-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>3])}','');" class="btn btn-sm bg-blue mb-2 mr-2"><i class="fa fa-info-circle mr-1"></i>{:lang('v_audit_pending')}</span>
                                                            <!--编辑-->
                                                            <a class="btn btn-sm btn-success mb-2 mr-2" data-target="#modal" data-toggle="modal" href="{:url('/comment/edit',['lang'=>$lang,'id'=>$rs['id'],'signid'=>input('signid')])}"><i class="fa fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                            <!--软删除-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>9])}','');" class="btn btn-sm btn-danger mb-2"><i class="fa fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                        {/case}
                                                        {case 2}
                                                            <!--已拒绝：通过/编辑/软删除-->
                                                            <!--通过-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>1])}','');" class="btn btn-sm btn-purple mb-2 mr-2"><i class="fa fa-check-circle mr-1"></i>{:lang('v_check_pass')}</span>
                                                            <!--待审核-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>3])}','');" class="btn btn-sm bg-blue mb-2 mr-2"><i class="fa fa-info-circle mr-1"></i>{:lang('v_audit_pending')}</span>
                                                            <!--编辑-->
                                                            <a class="btn btn-sm btn-success mb-2 mr-2" data-target="#modal" data-toggle="modal" href="{:url('/comment/edit',['lang'=>$lang,'id'=>$rs['id'],'signid'=>input('signid')])}"><i class="fa fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                            <!--软删除-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>9])}','');" class="btn btn-sm btn-danger mb-2"><i class="fa fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                        {/case}
                                                        {case 9}
                                                            <!--恢复/真实删除-->
                                                            <!--恢复-->
                                                            <span onClick="javascript:do_ajax('','','{:url('/comment/update_signid',['lang'=>$lang,'id'=>$rs['id'],'signid'=>1])}','');" class="btn btn-sm btn-purple mb-2 mr-2"><i class="fa fa-reply-all mr-1"></i>{:lang('v_restore')}</span>
                                                            <!--编辑-->
                                                            <a class="btn btn-sm btn-success mb-2 mr-2" data-target="#modal" data-toggle="modal" href="{:url('/comment/edit',['lang'=>$lang,'id'=>$rs['id'],'signid'=>input('signid')])}"><i class="fa fa-edit mr-1"></i>{:lang('v_edit')}</a>
                                                            <!--真实删除-->
                                                            <span onClick="javascript:do_confirm('','','{:url('/comment/delete_one',['lang'=>$lang,'id'=>$rs['id']])}','','');" class="btn btn-sm btn-danger mb-2"><i class="fa fa-trash mr-1"></i>{:lang('v_delete')}</span>
                                                        {/case}
                                                    {/switch}
                                                </td>
                                            </tr>
                                        {/volist}
                                        <tr>
                                            <td colspan="8">
                                                <div class="row">
                                                    <div class="col-xl-6 mt-2"><div class="float-lg-left mr-4">{$list->render()|raw}</div><div class="float-lg-left">{:lang('v_total')} {$lastPage} {:lang('v_page')} {$total} {:lang('v_records')}</div></div>
                                                    <div class="col-xl-6 mt-2 mt-md-1">
                                                        <div class="float-left float-xl-right">
                                                            <!-- 全选 -->
                                                            <button type="button" class="btn btn-info mr-2 checkbox-toggle"><i class="far fa-fw fa-square mr-1"></i>{:lang('v_select_all')}</button>
                                                            {switch signid}
                                                                {case 3}
                                                                    <!--待审核：通过/拒绝/软删除-->
                                                                    <!--通过-->
                                                                    <button type="button" class="btn btn-purple mt-2 mb-2 mr-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>1])}','');"><i class="fa fa-check-circle mr-1"></i>{:lang('v_batch')} {:lang('v_check_pass')}</button>
                                                                    <!--拒绝-->
                                                                    <button type="button" class="btn bg-purple mt-2 mb-2 mr-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>2])}','');"><i class="fa fa-times-circle mr-1"></i>{:lang('v_batch')} {:lang('v_check_cancel')}</button>
                                                                    <!--软删除-->
                                                                    <button type="button" class="btn btn-danger mt-2 mb-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>9])}','');"><i class="fa fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                                {/case}
                                                                {case 1}
                                                                    <!--已通过：拒绝/软删除-->
                                                                    <!--拒绝-->
                                                                    <button type="button" class="btn bg-purple mt-2 mb-2 mr-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>2])}','');"><i class="fa fa-times-circle mr-1"></i>{:lang('v_batch')} {:lang('v_check_cancel')}</button>
                                                                    <!--软删除-->
                                                                    <button type="button" class="btn btn-danger mt-2 mb-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>9])}','');"><i class="fa fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                                {/case}
                                                                {case 2}
                                                                    <!--已拒绝：通过/软删除-->
                                                                    <!--通过-->
                                                                    <button type="button" class="btn btn-purple mt-2 mb-2 mr-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>1])}','');"><i class="fa fa-check-circle mr-1"></i>{:lang('v_batch')} {:lang('v_check_pass')}</button>
                                                                    <!--软删除-->
                                                                    <button type="button" class="btn btn-danger mt-2 mb-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>9])}','');"><i class="fa fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                                {/case}
                                                                {case 9}
                                                                    <!--恢复/真实删除-->
                                                                    <!--恢复-->
                                                                    <button type="button" class="btn btn-purple mt-2 mb-2 mr-2" onClick="javascript:do_ajax('#form_list','','{:url('/comment/updateall_signid',['lang'=>$lang,'signid'=>1])}','');"><i class="fa fa-reply-all mr-1"></i>{:lang('v_batch')} {:lang('v_restore')}</button>
                                                                    <!--真实删除-->
                                                                    <button type="button" class="btn btn-danger mt-2 mb-2" onClick="javascript:do_confirm('#form_list','','{:url('/comment/delete_all',['lang'=>$lang])}','','');"><i class="fa fa-trash mr-1"></i>{:lang('v_delete_select')}</button>
                                                                {/case}
                                                            {/switch}
                                                        </div>
                                                    </div>
                                                </div>
                                            </td>
                                        </tr>
                                    </form>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </section>
        <!-- 内容主体 结束 -->
    </div>
    <!-- 右侧 结束 -->
{include file="public/foot" /}
</body>
</html>